﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Media;
using System.Windows.Navigation;
using Microsoft.Phone.Controls;
using Microsoft.Phone.Shell;

namespace TV_2013.View.Feature2.CompoundWord
{
    public partial class ViewMenuCompoundWord : PhoneApplicationPage
    {
        SolidColorBrush red = new SolidColorBrush(Colors.Red);

        public ViewMenuCompoundWord()
        {
            InitializeComponent();
        }

        private void btnLv1_Click(object sender, RoutedEventArgs e)
        {
            btnLv1.BorderBrush = red;
            btnLv1.Background = red;
            string link = "/View/Feature2/CompoundWord/ViewCompoundWord.xaml?id=1&n=5";

            NavigationService.Navigate(new Uri(link, UriKind.RelativeOrAbsolute));
        }

        private void btnLv2_Click(object sender, RoutedEventArgs e)
        {
            btnLv2.BorderBrush = red;
            btnLv2.Background = red;
            string link = "/View/Feature2/CompoundWord/ViewCompoundWord.xaml?id=2&n=8";

            NavigationService.Navigate(new Uri(link, UriKind.RelativeOrAbsolute));
        }

        private void btnLv3_Click(object sender, RoutedEventArgs e)
        {
            btnLv3.BorderBrush = red;
            btnLv3.Background = red;
            string link = "/View/Feature2/CompoundWord/ViewCompoundWord.xaml?id=3&n=10";

            NavigationService.Navigate(new Uri(link, UriKind.RelativeOrAbsolute));
        }

        private void btnLv4_Click(object sender, RoutedEventArgs e)
        {
            btnLv4.BorderBrush = red;
            btnLv4.Background = red;
            string link = "/View/Feature2/CompoundWord/ViewCompoundWord.xaml?id=4&n=8";

            NavigationService.Navigate(new Uri(link, UriKind.RelativeOrAbsolute));
        }

        private void btnLv5_Click(object sender, RoutedEventArgs e)
        {
            btnLv5.BorderBrush = red;
            btnLv5.Background = red;
            string link = "/View/Feature2/CompoundWord/ViewCompoundWord.xaml?id=5&n=7";

            NavigationService.Navigate(new Uri(link, UriKind.RelativeOrAbsolute));
        }

        private void btnLv6_Click(object sender, RoutedEventArgs e)
        {
            btnLv6.BorderBrush = red;
            btnLv6.Background = red;
            string link = "/View/Feature2/CompoundWord/ViewCompoundWord.xaml?id=6&n=7";

            NavigationService.Navigate(new Uri(link, UriKind.RelativeOrAbsolute));
        }

        private void btnLv7_Click(object sender, RoutedEventArgs e)
        {
            btnLv7.BorderBrush = red;
            btnLv7.Background = red;
            string link = "/View/Feature2/CompoundWord/ViewCompoundWord.xaml?id=7&n=11";

            NavigationService.Navigate(new Uri(link, UriKind.RelativeOrAbsolute));
        }

        private void btnLv8_Click(object sender, RoutedEventArgs e)
        {
            btnLv8.BorderBrush = red;
            btnLv8.Background = red;
            string link = "/View/Feature2/CompoundWord/ViewCompoundWord.xaml?id=8&n=8";

            NavigationService.Navigate(new Uri(link, UriKind.RelativeOrAbsolute));
        }

        private void btnLv9_Click(object sender, RoutedEventArgs e)
        {
            btnLv9.BorderBrush = red;
            btnLv9.Background = red;
            string link = "/View/Feature2/CompoundWord/ViewCompoundWord.xaml?id=9&n=8";

            NavigationService.Navigate(new Uri(link, UriKind.RelativeOrAbsolute));
        }

        private void btnLv10_Click(object sender, RoutedEventArgs e)
        {
            btnLv10.BorderBrush = red;
            btnLv10.Background = red;
            string link = "/View/Feature2/CompoundWord/ViewCompoundWord.xaml?id=10&n=7";

            NavigationService.Navigate(new Uri(link, UriKind.RelativeOrAbsolute));
        }

        private void btnLv11_Click(object sender, RoutedEventArgs e)
        {
            btnLv11.BorderBrush = red;
            btnLv11.Background = red;
            string link = "/View/Feature2/CompoundWord/ViewCompoundWord.xaml?id=11&n=8";

            NavigationService.Navigate(new Uri(link, UriKind.RelativeOrAbsolute));
        }

        private void btnLv12_Click(object sender, RoutedEventArgs e)
        {
            btnLv12.BorderBrush = red;
            btnLv12.Background = red;
            string link = "/View/Feature2/CompoundWord/ViewCompoundWord.xaml?id=12&n=10";

            NavigationService.Navigate(new Uri(link, UriKind.RelativeOrAbsolute));
        }   
    }
}